package com.draemoncode.weixindb.server;

import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class CMessagePackage {

    private Integer type;

    private Integer syncid;

    private Long create_time = new Date().getTime();

    private Map<String, Object> msg = new HashMap<>();

    public CMessagePackage() {
    }

    public CMessagePackage(Integer type) {
        this.type = type;
    }

    public CMessagePackage(Integer type, Integer syncid, Map<String, Object> msg) {
        this.type = type;
        this.syncid = syncid;
        this.msg = msg;
    }
}
